package com.ruoyi.car.mapper;

import java.util.List;
import com.ruoyi.car.domain.CarVehicleRecord;

/**
 * 用车记录Mapper接口
 * 
 * @author ruoyi
 * @date 2022-12-03
 */
public interface CarVehicleRecordMapper 
{
    /**
     * 查询用车记录
     * 
     * @param vehicleRecordId 用车记录主键
     * @return 用车记录
     */
    public CarVehicleRecord selectCarVehicleRecordByVehicleRecordId(Long vehicleRecordId);

    /**
     * 查询用车记录列表
     * 
     * @param carVehicleRecord 用车记录
     * @return 用车记录集合
     */
    public List<CarVehicleRecord> selectCarVehicleRecordList(CarVehicleRecord carVehicleRecord);

    /**
     * 新增用车记录
     * 
     * @param carVehicleRecord 用车记录
     * @return 结果
     */
    public int insertCarVehicleRecord(CarVehicleRecord carVehicleRecord);

    /**
     * 修改用车记录
     * 
     * @param carVehicleRecord 用车记录
     * @return 结果
     */
    public int updateCarVehicleRecord(CarVehicleRecord carVehicleRecord);

    /**
     * 删除用车记录
     * 
     * @param vehicleRecordId 用车记录主键
     * @return 结果
     */
    public int deleteCarVehicleRecordByVehicleRecordId(Long vehicleRecordId);

    /**
     * 批量删除用车记录
     * 
     * @param vehicleRecordIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCarVehicleRecordByVehicleRecordIds(Long[] vehicleRecordIds);
}
